package com.example.ssrbac.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class PermissionDTO {
    private Long id;

    @NotBlank(message = "权限名称不能为空")
    @Size(min = 2, max = 50, message = "权限名称长度必须在2-50之间")
    private String name;

    private String description;

    @NotBlank(message = "资源路径不能为空")
    private String resource;

    @NotBlank(message = "操作类型不能为空")
    private String action;
} 